package edu.cuc.akkaDay01.demo01;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.ConfigFactory;

/**
 * Created by bingruiqi on 2017/9/10.
 */
public class Test {
    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("Hello", ConfigFactory.load("samphellow.conf"));
        ActorRef actorRef = system.actorOf(Props.create(HelloWorld.class),"helloWorld");
        System.out.println("Hellow World path"+actorRef.path());
    }
}
